package com.itheima.mapper;

import com.github.pagehelper.PageInfo;
import com.itheima.pojo.BrandLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author itheima
 * @Date 2022/4/10 8:02
 */
@Mapper
public interface BrandLogMapper {
    /**
     * 添加日志
     * @param brandLog
     */
    @Insert("insert into tb_brand_log values(null,#{methodName},#{parameter},#{timeConsuming},#{operatorTime})")
    void addBrandLog(BrandLog brandLog);
    @Select("select * from spring.tb_brand_log")
    List<BrandLog> selectAll();
}
